package com.aidex.biz.mapper;

import com.aidex.biz.domain.JinjianKpi;
import com.aidex.biz.domain.vo.SelfKpiStatisticVo;
import com.aidex.biz.domain.vo.SumKpiStatisticVo;
import com.aidex.common.core.mapper.BaseMapper;

import java.util.List;

/**
 * 员工业绩Mapper接口
 *
 * @author sean
 * @email 2074844820@qq.com
 * @date 2025-08-13
 */
public interface JinjianKpiMapper extends BaseMapper<JinjianKpi> {

    /**
     * 批量删除员工业绩
     *
     * @param ids 需要删除的员工业绩ID集合
     * @return
     */
    public int deleteJinjianKpiByIds(String[] ids);

    /**
     * 获取最大编号
     *
     * @param jinjianKpi 员工业绩
     * @return 结果
     */
    public Integer findMaxSort(JinjianKpi jinjianKpi);

    /**
     * 个人业绩统计
     *
     * @param jinjianKpi
     * @return
     */
    public List<SelfKpiStatisticVo> getSelfKpiStatisticVo(JinjianKpi jinjianKpi);

    public SumKpiStatisticVo getSumKpiStatisticVo(JinjianKpi jinjianKpi);
}
